package com.work.pta.staic;

import java.util.Scanner;

public class Stack {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] stack = new int[10];
        int count=0;
        int num = scanner.nextInt();
        while (num!=0)
        {
            stack[count++]=num%2;
            num/=2;
        }
        for (int i=count-1;i>=0;i--)
        {
            System.out.print(stack[i]);
        }
    }
}
